<?php 
/**
 * 用户关系相关
 *
 */

include_once( ROOT . 'sdk/saetv2.ex.class.php' );

class Friendships extends ApiController{

	public function bilateral() {

		$uid = isset($_GET['uid']) ? $_GET['uid'] : '';
		$token = isset($_GET['token']) ? $_GET['token'] : '';
		$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
		$count = isset($_GET['count']) ? intval($_GET['count']) : 20;

		return FriendshipsModel::bilateral($token, $uid, $page, $count);
	}
}